﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace digitwhu.Models.IRepositorys
{
    interface IBlogRepository
    {
        IList<int> GetOriginBlog(string type, int placeId);
        IList<int> GetTranBlog(string type, int placeId);
        int GetBlogOwner(string type, int blogId);
        bool AddTranBlog(int placeId, string type, int originBlogId, int userId, string tranReason, int replyType);
        int GetLatestBlogId(string type);//type:transmit,original
        bool DeleteBlog(string type, int blogId);//type:transmit,original
        IList<int> GetBlogComment(string type, int blogId);//type:transmit,original
        bool AddComment(string type, int blogId, int userId, string comment);
        int GetLatestCommentId(string type);//type:transmit,original
        bool DeleteComment(string type, int commentId);//type:transmit,original
        bool AddOriginBlog(int placeId, string type, int userId, string content, int replyType); //type取值：building,street
        bool GetBlogIsUserAttention(string type, int blogId, int userId);//type:transmit,original
        bool GetBlogIsInUserBlack(string type, int blogId, int userId);//查询某条微博是不是被用户userId拉黑了的人的微博
    }
}